home *** CD-ROM | disk | FTP | other *** search
- Garfield Benjamin (gbenjam@sosbbs.com) wrote:
-
- >> If AGE<10
- >> Print "You are less than 10 years old."
- >> else if AGE=21
- >> Print "Hey!! Now you can drink alcohol in the U.S.!!"
- >> else
- >> Print "WOW, you're OVER 21!!"
- >> endif
- >> Smallest, and tidiest in my humble opinion.
- >> Is my approach good enough in the meantime?
-
- > Well, problem is this won't work.
-
- Yes it will. I tried it.
-
- >First, you need to match every If with an End If and second, the logic is not
- >the same.
-
- Both. If and endif is coupled the same way as select ... case ... endselect
- is so I can't see the problem. The logic is the same too. Select..is just
- more advanced in that it offers some extra features.
-
- >If AGE<10
- > Print "You are less than 10 years old."
- >Else If AGE=21
- > Print"Hey!! Now you can drink alcohol in the U.S.!!"
- > Else If AGE>21
- > Print "WOW, you'r OVER 21!!"
- > End If
- > End If
- >End If
-
- That would trigger the error-system. One if and three end-ifs is plain
- wrong.
-
- > That being said, this might be a bit clearer (arguably the "best"
- > method for AMOS) but it still lacks when compared to the
- > Select...Case style. Anyway, the point is you are still looking at
- > the same two basic methods, the If...End If and the If...Else...EndIf
-
- Yes but does it really matter? The result is what is importand and the
-
- if...
-
- else if ...
-
- else
-
- end if
-
- structure is quite close to the select.. syntax.
-
- ---
- Look at the shoes you're filling, look at the blood we're spilling
- Look at the world we're killing, the way we've always done before
- Look at the doubt we've wallowed, look at the leaders we've followed
- Look at the lies we've swallowed and I don't wanna hear no more
- ---
- Create the impression that you have already reached your level of incompetence.
-
-
-